#-*- coding: utf-8 -*-
#funcao definida fora da classe : mau codigo
def f1(self,x,y):
    return min(x,y)
class C:
    f=f1
obj = C()
print obj.f(2,4)
class Saco:
        def __init__(self):
            self.data =[]
        def add(self,x):
            self.data.append(x)
        def add2(self,x):
            self.add(x)
            self.add(x)
obj = Saco()
obj.add2("arroz")
print obj.data
